﻿using OT.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OT.Areas.Admin.Models
{
    public class Categories
    {
        public int CategoryID { get; set; }

        [Required, DisplayName("Category")]
        public string CategoryName { get; set; }

        [DataType(DataType.MultilineText)]
        public string Description { get; set; }

     

        public bool Status { get; set; }

        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }

        [DisplayName("SubCategory")]
        public int? SubCategoryID { get; set; }

        [DisplayName("SubCategoryName")]
        public string SubCategoryName { get; set; }

        public ICollection<Category> SubCategories { get; set; }

        public int LanguageID { get; set; }
    }
}